<?php
    require_once ("../../recursos/conf/cvcpa.conf");
    require_once ("../../recursos/librery/adodb/adodb.inc.php");
    require_once ("../../recursos/class/conexion.class.php");
    require_once ("../../recursos/class/juridica.class.php");
    
    $nit            =   $_POST["nit"];
    $hid_nit        =   $_POST["hid_nit"];
    $paso           =   $_POST["paso"];
    $obj_juridica    =   new Juridica();
    
    
    if($paso == 1)
    {
        echo $obj_juridica->check_nit($nit);
    }
    else if($paso == 2 && $nit <> $hid_nit)
    {
        echo $obj_juridica->check_nit($nit);
    }
    else
    {
        echo "0";
    }
?>